//
//  ZJMapControlView.h
//  LovingPartyBuilding
//
//  Created by ZJ on 2017/6/12.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ZJMapControlViewDelegate <NSObject>
@optional
- (void)ZJMapControlViewDelegate_meunButtonClick;//菜单
- (void)ZJMapControlViewDelegate_currentLocationButtonClick;//当前位置
- (void)ZJMapControlViewDelegate_homeButtonClick;//home
- (void)ZJMapControlViewDelegate_workAddressButton;//办公地址
- (void)ZJMapControlViewDelegate_organizationButtonClick;//党组织
- (void)ZJMapControlViewDelegate_positionButtonClick;//阵地
- (void)ZJMapControlViewDelegate_activityButtonClick;//活动

@end

///地图的控制View
@interface ZJMapControlView : UIView
/** 菜单按钮 */
@property (nonatomic, strong) UIButton *meunButton;
/** 当前位置按钮 */
@property (nonatomic, strong) UIButton *currentLocation;
/** 家按钮 */
@property (nonatomic, strong) UIButton *homeButton;
/** 党组织按钮 */
@property (nonatomic, strong) UIButton *organizationButton;
/** 活动按钮 */
@property (nonatomic, strong) UIButton *activityButton;
/** 阵地按钮 */
@property (nonatomic, strong) UIButton *positionButton;
/** 办公地址按钮 */
@property (nonatomic, strong) UIButton *workAddress;

/** 代理 */
@property (nonatomic, weak) id<ZJMapControlViewDelegate> delegate;


- (void)setupButton:(UIButton *)button title:(NSString *)title normalImageName:(NSString *)normalImageName selectImageName:(NSString *)selectImageName;

- (void)chooseFromString:(NSString *)string clickIndex:(NSInteger)index;
- (void)setUpHomeAndWorkAddressLocation;

@end
